package com.dw.service.impl;

import com.dw.dao.AnswerDao;
import com.dw.dao.BaseDao;
import com.dw.entity.Answer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Description 问题业务层接口
 * @Author dw
 * @Date 2020/1/4 15:40
 * @Version 1.0
 **/
@Service
public class AnswerServiceImpl extends BaseServiceImpl<Answer> {
    /**
        答案dao
     */
    @Autowired
    private AnswerDao answerDao;
    @Override
    public BaseDao getBaseDao() {
        return answerDao;
    }

    @Override
    public Integer insert(String tableName, List<String> columnList, List<String> propertyList) {
        return super.insert(tableName, columnList, propertyList);
    }

    @Override
    public Integer delete(Map<String, String> idMap) {
        return super.delete(idMap);
    }

    @Override
    public Integer update(String tableName, List<String> columnList, List<String> propertyList, Map<String, String> idMap) {
        return super.update(tableName, columnList, propertyList, idMap);
    }

    @Override
    public Answer findByOne(String tableName,Map<String, String> paramMap) {
        return super.findByOne(tableName,paramMap);
    }

    @Override
    public List<Answer> findAll(String tableName, Map<String, String> paramMap) {
        return super.findAll(tableName, paramMap);
    }

    @Override
    public Integer getTotalCount(String tableName) {
        return super.getTotalCount(tableName);
    }

    @Override
    public List<Map<Object, Object>> getPageList(String tableName, Integer offset, Integer limit, Map<String, String> paramMap) {
        return super.getPageList(tableName, offset, limit, paramMap);
    }
}
